#include <stdio.h>

int main(){
    int max(int,int);
    int min(int x,int y);
    int (*p)(int,int);
    int a,b,c,n;
    scanf("%d %d",&a,&b);
    printf("please choose 1 or 2:");
    scanf("%d",&n);
    if(n==1) p=max;
    else if(n==2) p=min;
    c=(*p)(a,b);
    printf("a=%d,b=%d\n",a,b);
    if(n==1) printf("max=%d\n",c);
    else printf("min=%d\n",c);
    return 0;
}
int max(int x,int y){
    int z;
    if(x>y) z=x;
    else z=y;
    return z;
}
int min(int x,int y){
    int z;
    if(x<y) z=x;
    else z=y;
    return z;
}